export const getPrjState = state => {
  switch (state) {
    case 0:
      return {
        state: '待提交',
        class: 'warning'
      }
    case 1:
      return {
        state: '待审核',
        class: 'warning'
      }
    case 2:
      return {
        state: '一审通过',
        class: 'primary'
      }
    case 3:
      return {
        state: '二审通过',
        class: 'success'
      }
    case 4:
      return {
        state: '三审通过',
        class: 'success'
      }
    case 5:
      return {
        state: '已驳回',
        class: 'danger'
      }
    case 6:
      return {
        state: '已取消',
        class: 'info'
      }
  }
}

export const getProjectKind = value => {
  switch (value) {
    case 1:
      return '行政'
    case 2:
      return '教学'
    case 3:
      return '公共'
  }
}
